package cn.edu.scau.cmi.zhuangyi.adapter;

import java.util.*;

public class SortUtil{
     public List sortInt(List<Integer> intList){
    	  for(int i=0;i<intList.size()-1;i++){
    		  for(int j=1;j<intList.size()-i;j++){
    			  if(intList.get(j-1).compareTo(intList.get(j))>0){
    				  int a = intList.get(j-1);
    				  intList.set(j-1,intList.get(j));
    				  intList.set(j,a);
    			  }
    		  }
    	  }
    	  return intList; 
      }
}
